<?php
class Shop
{          
    public $mContentsCell = 'shop_first_page.tpl';
    
    public function __construct()
    {}
    
    public function init()
    {
          if (isset($_GET['GenreId']))
            $this->mContentsCell = 'merchandise_list.tpl';
          if (isset($_GET['CategoryId']))
            $this->mContentsCell = 'merchandise_list.tpl';    
          // Load product details page if visiting a product
          if (isset ($_GET['MerchandiseId']))
            $this->mContentsCell = 'merchandise.tpl';
    }
}
?>
